CC = gcc  
XX = g++  
CFLAGS = -Wall -O –g -std=c99
TARGET = ./app  
  
SOURCES = $(wildcard *.c ../../linux/*.c ../../oc_user/*.c)  
OBJS = $(patsubst %.cpp, %.o, $(SOURCES))  
  
$(TARGET):$(OBJS)  
	$(CC) $(OBJS) -o $(TARGET)  
	chmod a+x $(TARGET)  
  
clean:  
	rm -rf *.o app  
